﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace EZCRS.HCMS.Entity
{
    #region HCRS_currency
    /// <summary>
    /// 
    /// </summary>
    public class HCRS_currency
   {
        private int? _id;
        private string _code;
        private string _name;
        private Decimal? _rate;
        private int? _rank;



        public HCRS_currency()
        {}


        public HCRS_currency(DataRow dr)
        {
            if (dr != null)
            {
                if(dr["id"].ToString()!="")_id=Convert.ToInt32(dr["id"].ToString());
                _code=dr["code"].ToString();
                _name=dr["name"].ToString();
                if(dr["rate"].ToString()!="")_rate=Convert.ToDecimal(dr["rate"].ToString());
                if(dr["rank"].ToString()!="")_rank=Convert.ToInt32(dr["rank"].ToString());


            }
        }



        #region 公共属性 


         /// <summary>
         /// 编号
         /// </summary>
         [DataFieldAttribute("id", "pk")]
         public int? id
         {
             get { return _id; }
             set { _id = value; }
         }

         /// <summary>
         /// 货币缩写
         /// </summary>
         [DataFieldAttribute("code")]
         public string code
         {
             get { return _code; }
             set { _code = value; }
         }

         /// <summary>
         /// 货币名称
         /// </summary>
         [DataFieldAttribute("name")]
         public string name
         {
             get { return _name; }
             set { _name = value; }
         }

         /// <summary>
         /// 兑换比率（100美元对换）
         /// </summary>
         [DataFieldAttribute("rate")]
         public Decimal? rate
         {
             get { return _rate; }
             set { _rate = value; }
         }

         /// <summary>
         /// 排序
         /// </summary>
         [DataFieldAttribute("rank")]
         public int? rank
         {
             get { return _rank; }
             set { _rank = value; }
         }



        #endregion


    }
    #endregion
}
